package com.kun.remote.fallback;

import com.kun.entity.SysPermission;
import com.kun.entity.SysUser;
import com.kun.remote.RemoteUserService;

import java.util.ArrayList;
import java.util.List;

/**
 * 断路器回退 调用失败会默认值 但是无法获取失败原因
 *
 * @author kun.li
 */
public class RemoteUserServiceFallBack implements RemoteUserService {
    @Override
    public SysUser getSysUser(String username, String userId) {
        return new SysUser();
    }

    @Override
    public SysUser getSysUser(String tenantId, String username, String userId) {
        return new SysUser();
    }

    @Override
    public List<SysPermission> selectPermission(String tenantId, String userId) {
        return new ArrayList<>();
    }


    @Override
    public List<SysUser> selectUserByDeptId(String deptIds) {
        return new ArrayList<>();
    }
}
